home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Dialog / DLL / MkStubsOs < prev    next >
Text File  |  1995-09-04  |  6KB  |  223 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.CreatDstry    \
  4.             o.Hide    \
  5.             o.Show    \
  6.             o.ShowAt    \
  7.             o.ShowStatic    \
  8.             o.Wait4Click    \
  9.  
  10.  
  11. LibName        =    Dialog
  12.  
  13.  
  14.  
  15. # Template makefile to make all .o files
  16. # and the SDLS Stubs file for DeskLib
  17. # sublibraries.
  18. # Julian Smith 16 Mar 1995.
  19.  
  20.  
  21. # The macro $(ObjectFiles) should be set at the 
  22. # start of this file, to be a space-separated
  23. # list of object files.
  24. # This is done by 'Makatic'.
  25.  
  26.  
  27. # The macro $(LibName) should also be set at the 
  28. # start of this file, to be the name of the 
  29. # DeskLib sublibrary.
  30. # This is done by 'Makatic'.
  31.  
  32. # Compiler and linker flags, These can be anything. 
  33. # All flags required by Straylight (eg CC -zM and
  34. # Link -rmf) are included in the macros $(CC) and
  35. # $(LINK).
  36. #
  37. CCFlags        =    -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  38. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  39.  
  40.  
  41. # Macros for commands, including the Straylight
  42. # tool 'cdll'. Note that DRLink doesn't seem to
  43. # work with the SDLS.
  44. #
  45. CC        =    cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
  46. ASM        =    ObjAsm $(ASMFlags)
  47. CDLL        =    cdll
  48. LINK        =    link
  49. AS        =    as -dde -throwback
  50.  
  51.  
  52. # filename of DLL Stubs aof file. This is linked with client apps.
  53. DLL_Stubs    =    Stubs
  54.  
  55.  
  56. # Filenames of intermediate files needed to make $(DLL_Lib) and $(DLL_Stubs).
  57. #
  58. # DLL_Def:        Standard definition file as per SDLS docs.
  59. # DLL_OtherStubsSource    Assembler source to be partially linked into
  60. #            the final stubs file. This will force linking
  61. #            in of stubs from any other DLLs used by this
  62. #            library when a client application is built.
  63. # DLL_PlainStubs    The vanilla stubs file created by SDLS's cdll.
  64. # DLL_OtherStubsObject    Assembled from DLL_OtherStubsSource. This
  65. #            simply imports __DeskLib_SDLS_Stubs_<libname>'s
  66. #            for all DeskLib DLLs used by this library, and
  67. #            exports __DeskLib_SDLS_Stubs_<thislibname>.
  68. #
  69. DLL_Def            =    ^.DLLDef
  70. DLL_OtherStubsSource    =    ^.OtherStubs
  71.  
  72. DLL_PlainStubs        =    PlainStubs
  73. DLL_OtherStubsObject    =    OSObj
  74.  
  75. # -------------------------------------------------------
  76. # Everything below here should probably not be changed...
  77. # -------------------------------------------------------
  78.  
  79.  
  80.  
  81. # Now all the rules...
  82.  
  83.  
  84. # Here's the two things we want to make...
  85. #
  86. All:    $(DLL_Stubs) $(ObjectFiles)
  87.  
  88. $(DLL_Stubs):    $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  89.     $(LINK) -aof -o $@ $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  90.  
  91. $(DLL_PlainStubs):    $(DLL_Def)
  92.     $(CDLL) -def $(DLL_Def) -stub $(DLL_PlainStubs)
  93.  
  94.  
  95. #$(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  96. #    $(AS) -o $(DLL_OtherStubsObject) $(DLL_OtherStubsSource)
  97.  
  98. $(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  99.     $(ASM) $(ASMFlags) -from $(DLL_OtherStubsSource) -to $(DLL_OtherStubsObject) 
  100.  
  101.  
  102. $(DLL_Def):    
  103.     | Warning: No DLL definition file exists.
  104.     | Creating a default DLL definition file: $(DLL_Def)
  105.     | This will have to be altered by hand.
  106.     $(CDLL) -def $(DLL_Def) -obj $(ObjectFiles)
  107.  
  108.  
  109.  
  110. # Rule for compiling C source code for a Straylight dynamically-linked library.
  111.  
  112. VPATH = @.^
  113.  
  114. .SUFFIXES:    .o .c .s
  115.  
  116. .c.o:
  117.     $(CC) -o $@ $<
  118.  
  119. .s.o:
  120.     $(ASM) $(ASMFlags) -from $< -to $@
  121.  
  122.  
  123.  
  124. # Dynamic dependencies:
  125. o.CreatDstry:    ^.c.CreatDstry
  126. o.CreatDstry:    C:h.stdlib
  127. o.CreatDstry:    DeskLib:h.Wimp
  128. o.CreatDstry:    DeskLib:h.Core
  129. o.CreatDstry:    C:h.stddef
  130. o.CreatDstry:    C:DLLLib.h.dll
  131. o.CreatDstry:    C:h.kernel
  132. o.CreatDstry:    DeskLib:h.WimpSWIs
  133. o.CreatDstry:    DeskLib:h.Dialog
  134. o.CreatDstry:    DeskLib:h.Window
  135. o.CreatDstry:    DeskLib:h.Pointer
  136. o.CreatDstry:    DeskLib:h.Core
  137. o.CreatDstry:    DeskLib:h.Icon
  138. o.CreatDstry:    DeskLib:h.DragASpr
  139. o.CreatDstry:    DeskLib:h.Window
  140. o.CreatDstry:    DeskLib:h.Coord
  141. o.CreatDstry:    DeskLib:h.Event
  142. o.CreatDstry:    DeskLib:h.Window
  143. o.Hide:    ^.c.Hide
  144. o.Hide:    DeskLib:h.Wimp
  145. o.Hide:    DeskLib:h.Core
  146. o.Hide:    C:h.stddef
  147. o.Hide:    C:DLLLib.h.dll
  148. o.Hide:    C:h.kernel
  149. o.Hide:    DeskLib:h.WimpSWIs
  150. o.Hide:    DeskLib:h.Dialog
  151. o.Hide:    DeskLib:h.Window
  152. o.Hide:    DeskLib:h.Pointer
  153. o.Hide:    DeskLib:h.Core
  154. o.Hide:    DeskLib:h.Icon
  155. o.Hide:    DeskLib:h.DragASpr
  156. o.Hide:    DeskLib:h.Window
  157. o.Hide:    DeskLib:h.Coord
  158. o.Hide:    DeskLib:h.Screen
  159. o.Show:    ^.c.Show
  160. o.Show:    DeskLib:h.Wimp
  161. o.Show:    DeskLib:h.Core
  162. o.Show:    C:h.stddef
  163. o.Show:    C:DLLLib.h.dll
  164. o.Show:    C:h.kernel
  165. o.Show:    DeskLib:h.WimpSWIs
  166. o.Show:    DeskLib:h.Dialog
  167. o.Show:    DeskLib:h.Window
  168. o.Show:    DeskLib:h.Pointer
  169. o.Show:    DeskLib:h.Core
  170. o.Show:    DeskLib:h.Icon
  171. o.Show:    DeskLib:h.DragASpr
  172. o.Show:    DeskLib:h.Window
  173. o.Show:    DeskLib:h.Coord
  174. o.Show:    DeskLib:h.Screen
  175. o.ShowAt:    ^.c.ShowAt
  176. o.ShowAt:    DeskLib:h.Wimp
  177. o.ShowAt:    DeskLib:h.Core
  178. o.ShowAt:    C:h.stddef
  179. o.ShowAt:    C:DLLLib.h.dll
  180. o.ShowAt:    C:h.kernel
  181. o.ShowAt:    DeskLib:h.WimpSWIs
  182. o.ShowAt:    DeskLib:h.Dialog
  183. o.ShowAt:    DeskLib:h.Window
  184. o.ShowAt:    DeskLib:h.Pointer
  185. o.ShowAt:    DeskLib:h.Core
  186. o.ShowAt:    DeskLib:h.Icon
  187. o.ShowAt:    DeskLib:h.DragASpr
  188. o.ShowAt:    DeskLib:h.Window
  189. o.ShowAt:    DeskLib:h.Coord
  190. o.ShowStatic:    ^.c.ShowStatic
  191. o.ShowStatic:    DeskLib:h.Wimp
  192. o.ShowStatic:    DeskLib:h.Core
  193. o.ShowStatic:    C:h.stddef
  194. o.ShowStatic:    C:DLLLib.h.dll
  195. o.ShowStatic:    C:h.kernel
  196. o.ShowStatic:    DeskLib:h.WimpSWIs
  197. o.ShowStatic:    DeskLib:h.Dialog
  198. o.ShowStatic:    DeskLib:h.Window
  199. o.ShowStatic:    DeskLib:h.Pointer
  200. o.ShowStatic:    DeskLib:h.Core
  201. o.ShowStatic:    DeskLib:h.Icon
  202. o.ShowStatic:    DeskLib:h.DragASpr
  203. o.ShowStatic:    DeskLib:h.Window
  204. o.ShowStatic:    DeskLib:h.Coord
  205. o.ShowStatic:    DeskLib:h.Window
  206. o.Wait4Click:    ^.c.Wait4Click
  207. o.Wait4Click:    DeskLib:h.Wimp
  208. o.Wait4Click:    DeskLib:h.Core
  209. o.Wait4Click:    C:h.stddef
  210. o.Wait4Click:    C:DLLLib.h.dll
  211. o.Wait4Click:    C:h.kernel
  212. o.Wait4Click:    DeskLib:h.WimpSWIs
  213. o.Wait4Click:    DeskLib:h.Dialog
  214. o.Wait4Click:    DeskLib:h.Window
  215. o.Wait4Click:    DeskLib:h.Pointer
  216. o.Wait4Click:    DeskLib:h.Core
  217. o.Wait4Click:    DeskLib:h.Icon
  218. o.Wait4Click:    DeskLib:h.DragASpr
  219. o.Wait4Click:    DeskLib:h.Window
  220. o.Wait4Click:    DeskLib:h.Coord
  221. o.Wait4Click:    DeskLib:h.Event
  222.